package com.nuoniu.sibanyun.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

@Data
@ApiModel(value="变更工人")
public class ChangeWorkerDto extends BaseEntity {

    private Long id;

    @ApiModelProperty(value = "工人ID")
    @TableField("worker_id")
    private Integer workerId;

    @ApiModelProperty(value = "工人姓名")
    @TableField("worker_name")
    private String workerName;

    @ApiModelProperty(value = "工人工号（工人编码）")
    @TableField("worker_no")
    private String workerNo;

    @ApiModelProperty(value = "开工日期")
    @TableField("start_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd" )
    private LocalDate startDate;
}
